<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>
      分享自我
    </title>

    <style>
      .bodybg{ background:#272727; width: 100%; font-family:"微软雅黑";} .toplogo{ background-color:#2b4490;
      min-height:190px;} .articlefont{font-family:"Microsoft YaHei",微软雅黑; color:black;}
    </style>

    <!-- UE -->

    
    <script type="text/javascript" charset="utf-8" src="/static/index/plug/ueditor/ueditor.config.js">
    </script>
    <script type="text/javascript" charset="utf-8" src="/static/index/plug/ueditor/ueditor.all.min.js">
    </script>
    

    <!-- UE END -->

    {% include 'public_css.html' %}
  </head>



  <body class="bodybg">

    {% include 'home/public_header.html' %}
    <br>
    <div id="main_div" class="container-fluid" align="center">
      <form id="rtfForm" name="rtfForm" method="POST" action="">
        <div class="input-group has-success col-xs-12 col-sm-10 col-md-8">
          <span class="input-group-addon" >
            题目：
          </span>
          <input name="article_hd_input" type="text" class="form-control" placeholder="少于20个字" >
        </div>

        <br>
        <div class="input-group has-success col-xs-12 col-sm-10 col-md-8">
          <span class="input-group-addon">
            导读：
          </span>
          <input 
              id="article_pre_input"
              name="article_pre_input"
              type="text"
              class="form-control"
              placeholder="少于200个字"
          >


        </div>

        <br>
        <div class="input-group has-success col-xs-12 col-sm-10 col-md-8">
          <span class="input-group-addon" >
            <a href="">
              分类：
            </a>
          </span>
          <input 
              name="article_module_input"
              type="text"
              class="form-control"
              placeholder="点击'分类'选择"
              value="{{obj.module}}">
        </div>
        <br>
        <div class="input-group has-success col-xs-12 col-sm-10 col-md-8">
          <span class="input-group-addon" >
            <a href="">
              标签：
            </a>
          </span>
          <select id="article_tags_input" name="article_tags_input" class="form-control" >
            {% for city in obj.cities %}
            <option value="{{city.cityName}}">
                {{city.cityName}}
            </option>
            {% endfor %}
          </select>
        </div>
        <br>
        <div class="input-group has-success col-xs-12 col-sm-10 col-md-9">
          <textarea id="content_text" name="content_text" style="width:100%;;line-height:18px;" placeholder="正文">
          </textarea>
        </div>

        <br>
        <div class="input-group has-success col-xs-12 col-sm-10 col-md-8">
          <button type="button" onclick="submitForm()" class="btn btn-primary">
            提交
          </button>
          &nbsp&nbsp&nbsp
          <button  type="button" class="btn btn-warning" onclick="location.reload()">
            放弃
          </button>
        </div>

        {% csrf_token %}
      </form>
    </div>
    <br>
    <br>

    <!-- UE script -->
    <script>
      var ue = UE.getEditor('content_text');
      function submitForm() {
        //alert(ue.getAllHtml());
        $("#rtfForm").submit()
      }
    </script>
    <!-- UE script end-->
    {% include 'public_footer.html' %} {% include 'public_js.html' %}
  </body>
</html>
